package com.blb.educourseservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.common.entity.CourseActivity;


public interface CourseActivityService extends IService<CourseActivity> {

    /**
     * 加库存
     * @param activityId
     * @return
     */
    CourseActivity addStock(int activityId,int stock);

    /**
     * 减库存
     * @param activityId
     * @return
     */
    CourseActivity reduceStock(int activityId,int stock);
}
